﻿using System;
using System.Collections.Generic;
using System.Text;

namespace 构造函数
{
/************************
* 程序描述：构造函数的实例
* 创 建 人：ncbcy@eiTarget
* 版 本 号：1.0.0
* 修改记录：0
***********************/
    class Program
    {
        static void Main(string[] args)
        {
            PersonInfo P001 = new PersonInfo(001,"女",165);
            Console.WriteLine(P001.pid + "\t" + P001.sex + "\t" + P001.tall);
            Console.ReadLine();
        }
    }
    class PersonInfo
    {
        public int pid;
        public string sex;
        public int tall;
        public PersonInfo(int gpid, string gsex, int gtall)
        {
            pid = gpid;
            sex = gsex;
            tall = gtall;
        }
    }
}
